home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / Telephones.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  51.8 KB  |  1,476 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Telephones.a
  3. ;
  4. ;    Contains:    Telephone Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__TELEPHONES__') = 'UNDEFINED' THEN
  18. __TELEPHONES__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  24.     include 'Dialogs.a'
  25.     ENDIF
  26.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  27.     include 'Errors.a'
  28.     ENDIF
  29.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  30.     include 'Events.a'
  31.     ENDIF
  32.     IF &TYPE('__CTBUTILITIES__') = 'UNDEFINED' THEN
  33.     include 'CTBUtilities.a'
  34.     ENDIF
  35.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  36.     include 'Components.a'
  37.     ENDIF
  38.  
  39.  
  40. curTELVersion                    EQU        3                    ; current Telephone Manager version 
  41.                                                             ;    the chooseXXX symbols are defined in CTBUtilities.(pah) 
  42. telChooseDisaster                EQU        -2
  43. telChooseFailed                    EQU        -1
  44. telChooseAborted                EQU        0
  45. telChooseOKMinor                EQU        1
  46. telChooseOKMajor                EQU        2
  47. telChooseCancel                    EQU        3
  48. telChooseOKTermChanged            EQU        4
  49.     IF &TYPE('classTEL') = 'UNDEFINED' THEN
  50.  
  51.                                                             ; telephone tool file type 
  52. classTEL                        EQU        'vbnd'
  53.     ENDIF
  54.  
  55.                                                             ; PHYSICAL TERMINAL CONSTANTS 
  56.                                                             ; INDEPENDENT HANDSET CONSTANTS 
  57. telIndHSOnHook                    EQU        0                    ; independent handset on hook 
  58. telIndHSOffHook                    EQU        1                    ; independent handset off hook 
  59. telIndHSDisconnected            EQU        0                    ; handset disconnected from the line 
  60. telIndHSConnected                EQU        1                    ; handset connected to the line 
  61.                                                             ; HOOK STATE CONSTANTS 
  62. telHandset                        EQU        1                    ; handset hookswitch 
  63. telSpeakerphone                    EQU        2                    ; speakerphone 'on' switch 
  64. telDeviceOffHook                EQU        1                    ; device off hook 
  65. telDeviceOnHook                    EQU        0                    ; device on hook 
  66.                                                             ; VOLUME CONTROL CONSTANTS 
  67. telHandsetSpeakerVol            EQU        1                    ; volume of the handset speaker 
  68. telHandsetMicVol                EQU        2                    ; sensitivity of the handset mic 
  69. telSpeakerphoneVol                EQU        3                    ; speakerphone volume 
  70. telSpeakerphoneMicVol            EQU        4                    ; sensitivity of the spkrphone mic 
  71. telRingerVol                    EQU        5                    ; volume of the ringer 
  72. telBuiltinSPVol                    EQU        6                    ; volume of the built-in speakerphone 
  73. telBuiltinSPMicVol                EQU        7                    ; sensitivity of the built-in speakerphone mic 
  74. telVolSame                        EQU        0                    ; leaves the volume at previous level 
  75. telVolMin                        EQU        1                    ; turns volume down to minimum level, but not off 
  76. telVolMax                        EQU        100                    ; highest level allowed by the Telephone Manager 
  77. telVolStateSame                    EQU        0                    ; leaves device in same state 
  78. telVolStateOff                    EQU        1                    ; turns the device off , 
  79.                                                             ; but doesn't change the volume setting. 
  80.                                                             ; Use for mute functions. 
  81. telVolStateOn                    EQU        2                    ; turns the device on.  Volume setting is 
  82.                                                             ; the same as previously set.
  83.                                                             ; DISPLAY CONSTANTS 
  84. telNormalDisplayMode            EQU        1                    ; normal display mode 
  85. telInspectMode                    EQU        2                    ; inspect display mode 
  86. telMiscMode                        EQU        3                    ; miscellaneous display mode 
  87. telRetrieveMode                    EQU        4                    ; message retrieval mode 
  88. telDirectoryQueryMode            EQU        5                    ; electronic directory mode 
  89. telEntireDisplay                EQU        0                    ; entire Display 
  90.                                                             ; KEY PRESS CONSTANTS 
  91. telHangupKey                    EQU        1                    ; drop, or release, key pressed 
  92. telHoldKey                        EQU        2                    ; hold key pressed 
  93. telConferenceKey                EQU        3                    ; conference key pressed 
  94. telTransferKey                    EQU        4                    ; transfer key pressed 
  95. telForwardKey                    EQU        5                    ; call forward key pressed 
  96. telCallbackKey                    EQU        6                    ; call back key pressed 
  97. telDNDKey                        EQU        7                    ; do not disturb key pressed 
  98. telCallPickupKey                EQU        8                    ; call Pickup key pressed 
  99. telCallParkKey                    EQU        9                    ; call Park key pressed 
  100. telCallDeflectKey                EQU        10                    ; call Deflect key pressed 
  101. telVoiceMailAccessKey            EQU        11                    ; voice Mail Access key pressed 
  102. telCallRejectKey                EQU        12                    ; call Reject key pressed 
  103. telOtherKey                        EQU        16                    ; other key pressed 
  104. telKeyPadPress                    EQU        1                    ; key pressed on 12 digit keypad
  105. telFeatureKeyPress                EQU        2                    ; feature Key Pressed 
  106. telTerminalEnabled                EQU        0
  107. telTerminalDisabled                EQU        1
  108. telUnknown                        EQU        0                    ; unknown error 
  109. telTerminalHWDisconnected        EQU        1                    ; terminal hardware is disconnected 
  110. telDeviceDriverClosed            EQU        2                    ; device driver is closed 
  111.                                                             ; ALERT PATTERN 
  112. telPattern0                        EQU        0
  113. telPattern1                        EQU        1
  114. telPattern2                        EQU        2
  115. telPattern3                        EQU        3
  116. telPattern4                        EQU        4
  117. telPattern5                        EQU        5
  118. telPattern6                        EQU        6
  119. telPattern7                        EQU        7
  120. telPatternOff                    EQU        8
  121. telPatternUndefined                EQU        15                    ; DN TYPES 
  122. telAllDNs                        EQU        0                    ; counts all types of DNs 
  123. telInternalDNs                    EQU        1                    ; connected to PBX or other non-public switch 
  124. telInternalDNsOnly                EQU        2                    ; connected to PBX or other non-public switch 
  125.                                                             ; and able to place internal calls only 
  126. telExternalDNs                    EQU        3                    ; connected to public network 
  127. telDNTypeUnknown                EQU        4                    ; DN type unknown 
  128.                                                             ; DN USAGE 
  129. telDNNotUsed                    EQU        0                    ; DN is not used - onhook 
  130. telDNPOTSCall                    EQU        1                    ; DN used for POTs call 
  131. telDNFaxCall                    EQU        2                    ; DN used for fax call 
  132. telDNDataCall                    EQU        3                    ; DN used for data call 
  133. telDNAlerting                    EQU        4                    ; Incoming call at DN 
  134. telDNUnknownState                EQU        5                    ; DN is in unknown state 
  135.                                                             ; CALL FORWARDING TYPES 
  136. telForwardImmediate                EQU        1                    ; immediately forward calls 
  137. telForwardBusy                    EQU        2                    ; forward on Busy 
  138. telForwardNoAnswer                EQU        3                    ; forward on No answer 
  139. telForwardBusyNA                EQU        4                    ; forwarding for busy and no answer
  140. telForwardTypeUnknown            EQU        5                    ; type of forwarding is unknown 
  141.                                                             ; CALL FORWARDING MESSAGES 
  142. telForwardCleared                EQU        0                    ; forwarding has been cleared 
  143. telForwardEst                    EQU        1                    ; forwarding has been established
  144. telForwardFailed                EQU        2                    ; attempt to setup forwarding has failed
  145.                                                             ; DO NOT DISTURB TYPES 
  146. telDNDIntExt                    EQU        0                    ; do not disturb for all internal and external calls
  147. telDNDExternal                    EQU        1                    ; do not disturb for external calls only 
  148. telDNDInternal                    EQU        2                    ; do not disturb for internal calls only 
  149. telDNDNonIntercom                EQU        3                    ; do not disturb for all calls except intercom 
  150.                                                             ; DO NOT DISTURB MESSAGES 
  151. telDNDCleared                    EQU        0                    ; do not disturb has been cleared 
  152. telDNDEst                        EQU        1                    ; do not disturb has been established 
  153. telDNDFailed                    EQU        2                    ; attempt to setup do not disturb has failed 
  154.                                                             ; VOICE MAIL MESSAGES 
  155. telAllVoiceMessagesRead            EQU        0                    ; all messages have been read, none are  waiting 
  156.                                                             ; to be read 
  157. telNewVoiceMessage                EQU        1                    ; a new message has arrived or messages are waiting 
  158.                                                             ; for this DN 
  159.                                                             ; DNSELECT MESSAGE 
  160. telDNDeselected                    EQU        0                    ; DN has been deselected 
  161. telDNSelected                    EQU        1                    ; DN has been selected 
  162.                                                             ; CALL ORIGINATORS 
  163. telInternalCall                    EQU        0                    ; return nth internal CA 
  164. telExternalCall                    EQU        1                    ; return nth external CA 
  165. telUnknownCallOrigin            EQU        2                    ; unknown call type 
  166. telAllCallOrigins                EQU        2                    ; return nth CA internal or external 
  167.                                                             ; CALL TYPES 
  168. telVoiceMailAccessOut            EQU        -7
  169. telPageOut                        EQU        -6
  170. telIntercomOut                    EQU        -5
  171. telCallbackOut                    EQU        -4
  172. telPickup                        EQU        -3
  173. telParkRetrieve                    EQU        -2
  174. telNormalOut                    EQU        -1
  175. telUnknownCallType                EQU        0
  176. telNormalIn                        EQU        1
  177. telForwardedImmediate            EQU        2
  178. telForwardedBusy                EQU        3
  179. telForwardedNoAnswer            EQU        4
  180. telTransfer                        EQU        5
  181. telDeflected                    EQU        6
  182. telIntercepted                    EQU        7
  183. telDeflectRecall                EQU        8
  184. telParkRecall                    EQU        9
  185. telTransferredRecall            EQU        10
  186. telIntercomIn                    EQU        11
  187. telCallbackIn                    EQU        12                    ; DIAL TYPES 
  188. telDNDialable                    EQU        0                    ; this DN could be dialed via TELSetupCall 
  189. telDNNorthAmerican                EQU        1                    ; rmtDN is standard North America 10 digit number 
  190. telDNInternational                EQU        2                    ; rmtDN is an international number 
  191. telDNAlmostDialable                EQU        3                    ; rmtDN is almost dialable, 
  192.                                                             ; missing prefix such as 9 or 1 
  193. telDNUnknown                    EQU        15                    ; unknown whether DN is dialable 
  194.                                                             ; CALL PROGRESS MESSAGES 
  195. telCAPDialTone                    EQU        1                    ; dial tone 
  196. telCAPRinging                    EQU        2                    ; destination CA is alerting 
  197. telCAPDialing                    EQU        3                    ; dialing the other end 
  198. telCAPReorder                    EQU        4                    ; reorder 
  199. telCAPBusy                        EQU        5                    ; busy 
  200. telCAPRouted                    EQU        6                    ; call routed; rmtDN will hold the routing directory 
  201.                                                             ; number routeDN and routePartyName have been updated 
  202. telCAPRoutedOff                    EQU        7                    ; call routed off-network; no further progress will 
  203.                                                             ; be available 
  204. telCAPTimeout                    EQU        8                    ; call timed out 
  205. telCAPUpdate                    EQU        9                    ; name and rmtDN information has been updated 
  206. telCAPPrompt                    EQU        10                    ; the network is prompting for more information 
  207. telCAPWaiting                    EQU        11                    ; call is proceeding, but there is no response yet 
  208.                                                             ; from the destination 
  209. telCAPCPC                        EQU        12                    ; telephone tool detected CPC signal 
  210. telCAPNoDialTone                EQU        13                    ; dial tone not detected 
  211. telCAPUnknown                    EQU        15                    ; call progress state unknown 
  212. telCAPDialDisabled                EQU        16                    ; Blacklisting: Dial Disabled 
  213. telCAPBlacklistedNumber            EQU        17                    ; Blacklisting: Blacklisted Number 
  214. telCAPForbiddenNumber            EQU        18                    ; Blacklisting: Forbidden Number 
  215. telCAPModemGuardTime            EQU        19                    ; Modem Guard Timein force, unable to dial 
  216. telCAPLCDetected                EQU        20                    ; trying to dial a number while the handset is offhook 
  217. telCAPLostLC                    EQU        21                    ; trying manual dial or answer while handset not off hook 
  218.                                                             ; or also lost line current during dialing. 
  219.                                                             ; OUTGOING CALL MESSAGES 
  220. telPhysical                        EQU        0                    ; user lifted handset and initiated call 
  221. telProgrammatic                    EQU        1                    ; programmatic initiation of outgoing call 
  222.                                                             ; DISCONNECT MESSAGES 
  223. telLocalDisconnect                EQU        0                    ; local party, this user, responsible for disconnect 
  224. telRemoteDisconnect                EQU        1                    ; remote party responsible for disconnect 
  225.                                                             ; DISCONNECT TYPES 
  226. telCADNormal                    EQU        1                    ; normal disconnect 
  227. telCADBusy                        EQU        2                    ; remote user busy 
  228. telCADNoResponse                EQU        3                    ; remote not responding 
  229. telCADRejected                    EQU        4                    ; call rejected 
  230. telCADNumberChanged                EQU        5                    ; number changed 
  231. telCADInvalidDest                EQU        6                    ; invalid destination address 
  232. telCADFacilityRejected            EQU        7                    ; requested facility rejected 
  233. telCADUnobtainableDest            EQU        9                    ; destination not obtainable 
  234. telCADCongested                    EQU        10                    ; network congestion 
  235. telCADIncompatibleDest            EQU        11                    ; incompatible destination 
  236. telCADTimeout                    EQU        12                    ; call timed out 
  237. telCADUnknown                    EQU        15                    ; reason unknown 
  238.                                                             ; CONFERENCE MESSAGES 
  239. telConferencePrepFailed            EQU        0                    ; conference could not be prepared 
  240. telConferencePending            EQU        1                    ; conference prepared successfully 
  241. telConferenceEstFailed            EQU        2                    ; conference could not be established 
  242. telConferenceEst                EQU        3                    ; conference established 
  243.                                                             ; TRANSFER MESSAGES 
  244. telTransferPrepFailed            EQU        0                    ; transfer could not be prepared 
  245. telTransferPending                EQU        1                    ; transfer prepared successfully 
  246. telTransferEst                    EQU        2                    ; consult or blind xfer successful 
  247. telTransferFailed                EQU        3                    ; consult or blind xfer failed 
  248. telTransferred                    EQU        4                    ; message to originator of CA specifying 
  249.                                                             ; that call was transferred to rmtDN 
  250.                                                             ; HOLD MESSAGES 
  251. telHoldCleared                    EQU        0
  252. telHoldEst                        EQU        1
  253. telHoldFailed                    EQU        2                    ; RECEIVE DIGIT MESSAGES 
  254. telDigitAudible                    EQU        0
  255. telDigitNotAudible                EQU        1                    ; CALL PARK MESSAGES 
  256. telCallParkEst                    EQU        1                    ; call has been successfully parked 
  257. telCallParkRetrieveEst            EQU        2                    ; parked Call has been successfully retrieved 
  258. telCallParkFailed                EQU        3                    ; attempt to setup call park has failed 
  259. telCallParkRetrieveFailed        EQU        4                    ; attempt to retrieve parked call failed 
  260. telCallParkRecall                EQU        5                    ; call park has been recalled 
  261.                                                             ; CALL BACK MESSAGES 
  262. telCallbackCleared                EQU        0                    ; call back has been cleared 
  263. telCallbackEst                    EQU        1                    ; call back has been established 
  264. telCallbackNowAvail                EQU        2                    ; call can be called back with TELCallBackNow 
  265.                                                             ; if CA is zero, else call IS calling back on CA 
  266. telCallbackFailed                EQU        3                    ; attempt to setup callback has failed 
  267. telCallbackDesired                EQU        4                    ; a user has called this terminal, received no 
  268.                                                             ; answer and desires this terminal to call it 
  269.                                                             ; back 
  270. telCallbackDesiredCleared        EQU        5                    ; call back for no answer no longer desired 
  271. telCalledback                    EQU        6                    ; callback has occurred successfully 
  272.                                                             ; CALL REJECT MESSAGES 
  273. telCallRejectFailed                EQU        0                    ; attempt to reject call has failed 
  274. telCallRejectEst                EQU        1                    ; call successfully rejected 
  275. telCallRejected                    EQU        2                    ; message to originator that call was rejected 
  276.                                                             ; CALL DEFLECT MESSAGES 
  277. telCallDeflectFailed            EQU        0                    ; attempt to deflect call has failed 
  278. telCallDeflectEst                EQU        1                    ; call successfully deflected 
  279. telCallDeflectRecall            EQU        2                    ; deflected call has been recalled 
  280. telCallDeflected                EQU        3                    ; message to originator that call was deflected 
  281.                                                             ; to rmtDN 
  282. telAutoDeflectImmediate            EQU        4                    ; a call was automatically deflected from this 
  283.                                                             ; terminal as a result of immediate call 
  284.                                                             ; forwarding 
  285. telAutoDeflectBusy                EQU        5                    ; a call was automatically deflected from this 
  286.                                                             ; terminal as a result of call forwarding on busy 
  287. telAutoDeflectNoAnswer            EQU        6                    ; a call was automatically deflected from this 
  288.                                                             ; terminal as a result of call forwarding on 
  289.                                                             ; no answer 
  290.                                                             ; CONFERENCE SPLIT MESSAGES 
  291. telConferenceSplitFailed        EQU        0                    ; CA could not be split 
  292. telConferenceSplitEst            EQU        1                    ; CA split successfully 
  293.                                                             ; CONFERENCE DROP MESSAGES 
  294. telConferenceDropFailed            EQU        0                    ; CA could not be dropped 
  295. telConferenceDropped            EQU        1                    ; CA dropped successfully 
  296.                                                             ; CALL PICKUP MESSAGES 
  297. telCallPickupEst                EQU        0                    ; call pickup was successful 
  298. telCallPickupFailed                EQU        1                    ; call pickup failed 
  299. telCallPickedUp                    EQU        2                    ; message to originator that call was picked 
  300.                                                             ; up at a different DN 
  301.                                                             ; PAGING MESSAGES 
  302. telPageEst                        EQU        0                    ; paging was successful 
  303. telPageComplete                    EQU        1                    ; paging activity completed 
  304. telPageFailed                    EQU        2                    ; paging failed 
  305.                                                             ; INTERCOM MESSAGES 
  306. telIntercomEst                    EQU        0                    ; intercom was successful 
  307. telIntercomComplete                EQU        1                    ; intercom activity completed 
  308. telIntercomFailed                EQU        2                    ; intercom failed 
  309.                                                             ; MODEM TONE MESSAGES 
  310. telModemToneDetected            EQU        0                    ; modem tone was detected 
  311. telModemToneCleared                EQU        1                    ; modem tone went away 
  312.                                                             ; FAX TONE MESSAGES 
  313. telFaxToneDetected                EQU        0                    ; fax tone was detected 
  314. telFaxToneCleared                EQU        1                    ; fax tone went away 
  315.                                                             ; IN USE MESSAGES 
  316. telInUsePrivate                    EQU        0                    ; MADN is in use and can't be accessed 
  317. telInUseCanAccess                EQU        1                    ; MADN is in use, and others can access it 
  318.                                                             ; and join in 
  319. telInUseCanMakePrivate            EQU        2                    ; MADN is in use, but available for any one 
  320.                                                             ; person to access 
  321. telInUseCleared                    EQU        3                    ; MADN is no longer in use 
  322.                                                             ; CALL APPEARANCE STATES 
  323. telCAIdleState                    EQU        0                    ; a call doesn't exist at this time 
  324. telCAInUseState                    EQU        1                    ; the call is active but at another terminal 
  325. telCAOfferState                    EQU        2                    ; a call is being offered to the terminal 
  326. telCAQueuedState                EQU        3                    ; a call is being queued at this terminal 
  327. telCAAlertingState                EQU        4                    ; a call is alerting at the terminal 
  328. telCADialToneState                EQU        5                    ; initiated outgoing call has dialtone 
  329. telCADialingState                EQU        6                    ; initiated outgoing call is dialing 
  330. telCAWaitingState                EQU        7                    ; initiated outgoing call is waiting for 
  331.                                                             ; response from destination 
  332. telCARingingState                EQU        8                    ; the outgoing call is ringing. 
  333. telCABusyState                    EQU        9                    ; destination is busy or can't be reached 
  334. telCAHeldState                    EQU        10                    ; call has been put on hold by this terminal 
  335. telCAConferencedState            EQU        11                    ; this CA is part of a conference now 
  336. telCAActiveState                EQU        12                    ; the call is active and parties are free 
  337.                                                             ; to exchange data 
  338. telCAReorderState                EQU        13                    ; CA is in a reorder state 
  339. telCAConferencedHeldState        EQU        14                    ; CA is a conference call in a held state 
  340. telCAUnknownState                EQU        15                    ; the call state is unknown 
  341.                                                             ; TERMINAL MESSAGE EVENTMASKS 
  342. telTermHookMsg                    EQU        $00000001            ; the hookswitch state has changed 
  343. telTermKeyMsg                    EQU        $00000002            ; a phone pad key has been depressed 
  344. telTermVolMsg                    EQU        $00000004            ; volume setting has changed 
  345. telTermDisplayMsg                EQU        $00000008            ; display has changed 
  346. telTermEnableMsg                EQU        $00000010            ; terminal has become enabled 
  347. telTermOpenMsg                    EQU        $00000020            ; terminal has been opened 
  348. telTermCloseMsg                    EQU        $00000040            ; terminal is shutting down 
  349. telTermResetMsg                    EQU        $00000080            ; terminal has been reset 
  350. telTermErrorMsg                    EQU        $00000100            ; hard equipment error 
  351. telTermIndHSStateChgMsg            EQU        $00000200            ; change in handset state from inacive to 
  352.                                                             ; active or vice versa 
  353. telTermIndHSConnectMsg            EQU        $00000400            ; independent handset connection has been changed 
  354. telTermKeyImmMsg                EQU        $00000800            ; immidiate arrival of phone pad key 
  355. telTermVolStateMsg                EQU        $00001000            ; volume state has changed 
  356. telTermOtherMsg                    EQU        $80000000            ; vendor defined error 
  357. telAllTermMsgs                    EQU        $00001FFF            ; mask to all non tool specific terminal events 
  358.                                                             ; DN MESSAGE EVENTMASK CONSTANTS 
  359. telDNForwardMsg                    EQU        $00000001            ; forward feature activity 
  360. telDNDNDMsg                        EQU        $00000002            ; do not disturb feature activity 
  361. telDNVoiceMailMsg                EQU        $00000004            ; message has arrived for this DN 
  362. telDNSelectedMsg                EQU        $00000008            ; DN has been selected or deselected 
  363. telDNOtherMsg                    EQU        $80000000            ; a custom message for use by tools 
  364. telAllDNMsgs                    EQU        $0000000F            ; mask to all non tool specific dn events 
  365.                                                             ; CA MESSAGE EVENTMASK CONSTANTS 
  366. telCAAlertingMsg                EQU        $00000001            ; CA is alerting  
  367. telCAOfferMsg                    EQU        $00000002            ; CA is being offered a call 
  368. telCAProgressMsg                EQU        $00000004            ; call progress info for this CA 
  369. telCAOutgoingMsg                EQU        $00000008            ; CA is initiating an outgoing call 
  370. telCADisconnectMsg                EQU        $00000010            ; CA disconnected (dropped or rmt disc 
  371. telCAActiveMsg                    EQU        $00000020            ; CA is active and voice/data is free 
  372.                                                             ; to flow end to end 
  373. telCAConferenceMsg                EQU        $00000040            ; conference activity on CA 
  374. telCATransferMsg                EQU        $00000080            ; transfer feature activity 
  375. telCAHoldMsg                    EQU        $00000100            ; hold feature activity 
  376. telCADigitsMsg                    EQU        $00000200            ; remote signaling digits arrived 
  377. telCACallParkMsg                EQU        $00000400            ; CA call park feature activity 
  378. telCACallbackMsg                EQU        $00000800            ; CA call back feature activity  
  379. telCARejectMsg                    EQU        $00001000            ; CA is rejected 
  380. telCADeflectMsg                    EQU        $00002000            ; CA is deflected 
  381. telCAForwardMsg                    EQU        $00004000            ; CA is forwarded to this DN  
  382. telCAConferenceSplitMsg            EQU        $00008000            ; conference split activity  
  383. telCAConferenceDropMsg            EQU        $00010000            ; conference drop activity  
  384. telCAQueuedMsg                    EQU        $00020000            ; CA has been queued  
  385. telCAInUseMsg                    EQU        $00040000            ; CA is in use  
  386. telCACallPickupMsg                EQU        $00080000            ; CA pickup activity 
  387. telCAPagingMsg                    EQU        $00100000            ; CA paging activity 
  388. telCAIntercomMsg                EQU        $00200000            ; CA intercom activity 
  389. telCAModemToneMsg                EQU        $00400000            ; modem tones detected 
  390. telCAFaxToneMsg                    EQU        $00800000            ; fax tones detected 
  391. telCAIdleMsg                    EQU        $01000000            ; CA is in idle state 
  392. telCASuccessiveAlertMsg            EQU        $02000000            ; phone is alerting, one per ring 
  393. telCAUserUserInfoMsg            EQU        $04000000            ; user to user information has arrrived 
  394.                                                             ; for this CA 
  395. telCAHandOffMsg                    EQU        $08000000            ; CA is ready for hand-off 
  396. telCAVoiceDetectedMsg            EQU        $10000000            ; voice Detect related event 
  397. telCASilenceDetectedMsg            EQU        $20000000            ; silence Detect related event 
  398. telCADigitsImmMsg                EQU        $40000000            ; immidiate arrival of remote signaling digits 
  399. telCAOtherMsg                    EQU        $80000000            ; tool specific CA message 
  400. telAllCAMsgs                    EQU        $7FFFFFFF            ; mask to all non tool specific CA events 
  401. ; typedef OSErr                         TELErr
  402.  
  403. ; typedef unsigned long                 TELFlags
  404.  
  405.  
  406. telNoMenus                        EQU        $00010000            ; tells tool not to display any custom menus 
  407. telQuiet                        EQU        $00020000            ; tells tool not to display any dialog boxes or alerts 
  408. telConfigChanged                EQU        $00040000            ; notifies application that the config has changed 
  409. ; typedef unsigned long                 TELFeatureFlags
  410.  
  411.  
  412. pcmAvail                        EQU        $00000001            ; true if PCM voice data accessible 
  413. hasHandset                        EQU        $00000002            ; true if a phone handset is attached  
  414. hasSpeakerphone                    EQU        $00000004            ; true if a 2 way speakerphone is attached 
  415. canOnHookDial                    EQU        $00000008            ; can on-hook dial 
  416. hasRinger                        EQU        $00000010            ; terminal has its own ringer 
  417. canSetDisplay                    EQU        $00000020            ; application can write to the display 
  418. hasKeypad                        EQU        $00000040            ; attached phone has standard 12 key pad 
  419. hasVideo                        EQU        $00000080            ; terminal has a videophone 
  420. hasOther                        EQU        $00000100            ; reserved for future use 
  421. crossDNConference                EQU        $00000200            ; can perform cross-DN conferences 
  422. hasSubaddress                    EQU        $00000400            ; attached network supports subaddressing 
  423. hasUserUserInfo                    EQU        $00000800            ; network supports user-to-user info 
  424. hasHandsetSoundStreams            EQU        $00001000            ; sound streams are supported on the handset 
  425. hasIndHandset                    EQU        $00002000            ; handset can be accessed independently of the phone line 
  426. hasBuiltinSpeakerphone            EQU        $00004000            ; speaker and microphone of the Mac can be used 
  427.  
  428. TELTermRecord            RECORD 0
  429. tRef                     ds.w    1                ; offset: $0 (0)
  430. featureFlags             ds.l    1                ; offset: $2 (2)
  431. handsetSpeakerVol         ds.w    1                ; offset: $6 (6)
  432. handsetMicVol             ds.w    1                ; offset: $8 (8)
  433. speakerphoneVol             ds.w    1                ; offset: $A (10)
  434. speakerphoneMicVol         ds.w    1                ; offset: $C (12)
  435. ringerVol                 ds.w    1                ; offset: $E (14)
  436. otherVol                 ds.w    1                ; offset: $10 (16)
  437. ringerTypes                 ds.w    1                ; offset: $12 (18)
  438. hasDisplay                 ds.w    1                ; offset: $14 (20)
  439. displayRows                 ds.w    1                ; offset: $16 (22)
  440. numDNs                     ds.w    1                ; offset: $18 (24)
  441. maxAllocCA                 ds.w    1                ; offset: $1A (26)
  442. curAllocCA                 ds.w    1                ; offset: $1C (28)
  443. builtinSpeakerVol         ds.w    1                ; offset: $1E (30)
  444. builtinSpeakerMicVol     ds.w    1                ; offset: $20 (32)
  445. reserved                 ds.l    1                ; offset: $22 (34)
  446. sizeof                     EQU *                    ; size:   $26 (38)
  447.                         ENDR
  448. ; typedef struct TELTermRecord *        TELTermPtr
  449.  
  450. TELRecord                RECORD 0
  451. procID                     ds.w    1                ; offset: $0 (0)
  452. flags                     ds.l    1                ; offset: $2 (2)
  453. reserved                 ds.w    1                ; offset: $6 (6)
  454. refCon                     ds.l    1                ; offset: $8 (8)
  455. userData                 ds.l    1                ; offset: $C (12)
  456. defproc                     ds.l    1                ; offset: $10 (16)
  457. config                     ds.l    1                ; offset: $14 (20)
  458. oldConfig                 ds.l    1                ; offset: $18 (24)
  459. pTELTerm                 ds.l    1                ; offset: $1C (28)
  460. telPrivate                 ds.l    1                ; offset: $20 (32)
  461. reserved1                 ds.l    1                ; offset: $24 (36)
  462. reserved2                 ds.l    1                ; offset: $28 (40)
  463. pTELTermSize             ds.l    1                ; offset: $2C (44)
  464. version                     ds.w    1                ; offset: $30 (48)
  465. sizeof                     EQU *                    ; size:   $32 (50)
  466.                         ENDR
  467. ; typedef struct TELRecord *            TELPtr
  468.  
  469. ; typedef TELPtr *                        TELHandle
  470.  
  471. ; typedef unsigned long                 TELDNFeatureFlags
  472.  
  473.  
  474. dndSub                            EQU        $00000001            ; do not disturb subscribed 
  475. dndAvail                        EQU        $00000002            ; do not disturb available 
  476. dndActive                        EQU        $00000004            ; do not disturb active 
  477. voiceMailAccessSub                EQU        $00000008            ; message waiting subscribed 
  478. voiceMailAccessAvail            EQU        $00000010            ; message waiting available 
  479. voiceMailAccessActive            EQU        $00000020            ; message waiting active 
  480. pagingSub                        EQU        $00000040            ; paging is subscribed 
  481. pagingAvail                        EQU        $00000080            ; paging is available 
  482. pagingActive                    EQU        $00000100            ; paging is active 
  483. intercomSub                        EQU        $00000200            ; intercom is subscribed 
  484. intercomAvail                    EQU        $00000400            ; intercom is available 
  485. intercomActive                    EQU        $00000800            ; intercom is active 
  486. dnSelectSub                        EQU        $00001000            ; DN select is subscribed 
  487. dnSelectAvail                    EQU        $00002000            ; DN select is available 
  488. dnSelectActive                    EQU        $00004000            ; DN is selected 
  489. callPickupSub                    EQU        $00008000            ; call pickup is subscribed 
  490. callPickupAvail                    EQU        $00010000            ; call pickup is available 
  491. dnInUse                            EQU        $00020000            ; a CA is allocated for this DN 
  492. logicalDN                        EQU        $00040000            ; this DN is not on this terminal 
  493. dnAccessible                    EQU        $00080000            ; commands can be sent to this DN 
  494. canInitiate                        EQU        $00100000            ; an outgoing CA can be initiated 
  495. voiceMessageWaiting                EQU        $00200000            ; voice mail waiting for this dn 
  496. hasDNSoundStreams                EQU        $00400000            ; sound streams are supported on this DN 
  497. autoAnswerAvail                    EQU        $00800000            ; AutoAnswer is set for this DN 
  498. autoAnswerActive                EQU        $01000000            ; AutoAnswer is currently applied to CA on this DN 
  499. tollSaverAvail                    EQU        $02000000            ; tollSaver is set for this DN 
  500. tollSaverActive                    EQU        $04000000            ; tollSaver is currently applied to CA on this DN 
  501. ; typedef unsigned long                 TELDNForwardFlags
  502.  
  503.  
  504. immediateForwardSub                EQU        $00000001            ; immediate call forward subscribed 
  505. immediateForwardAvail            EQU        $00000002            ; immediate call forward available 
  506. immediateForwardActive            EQU        $00000004            ; immediate call forward active 
  507. busyForwardSub                    EQU        $00000008            ; forward on busy subscribed 
  508. busyForwardAvail                EQU        $00000010            ; forward on busy available 
  509. busyForwardActive                EQU        $00000020            ; forward on busy active 
  510. noAnswerForwardSub                EQU        $00000040            ; no answer call forward subscribed 
  511. noAnswerForwardAvail            EQU        $00000080            ; no answer call forward available 
  512. noAnswerForwardActive            EQU        $00000100            ; no answer call forward active 
  513. busyNAForwardSub                EQU        $00000200            ; busy & no answer call forward subscribed 
  514. busyNAForwardAvail                EQU        $00000400            ; busy & no answer call forward available 
  515. busyNAForwardActive                EQU        $00000800            ; busy & no answer call forward active 
  516.  
  517. TELDNRecord                RECORD 0
  518. dnRef                     ds.w    1                ; offset: $0 (0)
  519. dn                         ds.l    1                ; offset: $2 (2)
  520. dnPartyName                 ds.l    1                ; offset: $6 (6)
  521. dnSubaddress             ds.l    1                ; offset: $A (10)
  522. hTEL                     ds.l    1                ; offset: $E (14)
  523. maxAllocCA                 ds.w    1                ; offset: $12 (18)
  524. curAllocCA                 ds.w    1                ; offset: $14 (20)
  525. dnType                     ds.w    1                ; offset: $16 (22)
  526. featureFlags             ds.l    1                ; offset: $18 (24)
  527. numPageIDs                 ds.w    1                ; offset: $1C (28)
  528. numIntercomIDs             ds.w    1                ; offset: $1E (30)
  529. numPickupIDs             ds.w    1                ; offset: $20 (32)
  530. forwardFlags             ds.l    1                ; offset: $22 (34)
  531. iForwardDN                 ds.l    1                ; offset: $26 (38)
  532. iForwardSubaddress         ds.l    1                ; offset: $2A (42)
  533. iForwardPartyName         ds.l    1                ; offset: $2E (46)
  534. bForwardDN                 ds.l    1                ; offset: $32 (50)
  535. bForwardSubaddress         ds.l    1                ; offset: $36 (54)
  536. bForwardPartyName         ds.l    1                ; offset: $3A (58)
  537. naForwardDN                 ds.l    1                ; offset: $3E (62)
  538. naForwardSubaddress         ds.l    1                ; offset: $42 (66)
  539. naForwardPartyName         ds.l    1                ; offset: $46 (70)
  540. naForwardRings             ds.w    1                ; offset: $4A (74)
  541. telDNPrivate             ds.l    1                ; offset: $4C (76)
  542. refCon                     ds.l    1                ; offset: $50 (80)
  543. userData                 ds.l    1                ; offset: $54 (84)
  544. reserved                 ds.l    1                ; offset: $58 (88)
  545. sizeof                     EQU *                    ; size:   $5C (92)
  546.                         ENDR
  547. ; typedef struct TELDNRecord *            TELDNPtr
  548.  
  549. ; typedef TELDNPtr *                    TELDNHandle
  550.  
  551. ; typedef unsigned long                 TELCAFeatureFlags
  552.  
  553.  
  554. holdSub                            EQU        $00000001            ; hold subscribed  
  555. holdAvail                        EQU        $00000002            ; hold available  
  556. holdActive                        EQU        $00000004            ; hold active  
  557. conferenceSub                    EQU        $00000008            ; conference subscribed 
  558. conferenceAvail                    EQU        $00000010            ; conference available 
  559. conferenceActive                EQU        $00000020            ; conference active  
  560. conferenceDropSub                EQU        $00000040            ; conference drop subscribed  
  561. conferenceDropAvail                EQU        $00000080            ; a call to TELDrop will drop this 
  562.                                                             ; CA only from a conference 
  563. conferenceSplitSub                EQU        $00000100            ; conference split subscribed  
  564. conferenceSplitAvail            EQU        $00000200            ; conference split available for this CA 
  565. numToConferenceRequired            EQU        $00000400            ; the number of CAs to be conferenced is 
  566.                                                             ; required in TELConfPrep  
  567. transferSub                        EQU        $00000800            ; transfer subscribed  
  568. transferAvail                    EQU        $00001000            ; transfer available  
  569. transferActive                    EQU        $00002000            ; transfer active 
  570. caRelated                        EQU        $00004000            ; this CA is the specified in some other CA's relatedCA field
  571. ; typedef unsigned long                 TELCAOtherFeatures
  572.  
  573.  
  574. callbackSub                        EQU        $00000001            ; call back subscribed 
  575. callbackAvail                    EQU        $00000002            ; call back available 
  576. callbackActive                    EQU        $00000004            ; call back active  
  577. callbackClearSub                EQU        $00000008            ; call back clearing subscribed 
  578. callbackNowSub                    EQU        $00000010            ; call back now subscribed 
  579. callbackNowAvail                EQU        $00000020            ; call back now available  
  580. callbackBusy                    EQU        $00000040            ; call back on busy 
  581. callbackNoAnswer                EQU        $00000080            ; call back on no answer 
  582. callbackReturnsRef                EQU        $00000100            ; call back returns a reference 
  583. parkSub                            EQU        $00000200            ; call park subscribed 
  584. parkAvail                        EQU        $00000400            ; call park available 
  585. parkActive                        EQU        $00000800            ; call park active 
  586. parkRetrieveSub                    EQU        $00001000            ; call park retrieve subscribed 
  587. parkRetrieveWithID                EQU        $00002000            ; retrieve parked calls with IDs 
  588. parkWithReturnedID                EQU        $00004000            ; park call to a specific remote ID 
  589. parkWithGivenID                    EQU        $00040000            ; for switch that requires ID for parking 
  590. rejectable                        EQU        $00008000            ; CA is rejectable  
  591. deflectable                        EQU        $00010000            ; CA is deflectable  
  592. acceptable                        EQU        $00020000            ; CA is acceptable 
  593. voiceDetected                    EQU        $00080000            ; voice has been detected on this CA incase of 
  594.                                                             ; an incoming call 
  595. callAnswdTSRings                EQU        $00100000            ; incoimng call was answered on TollSaver rings 
  596.  
  597.  
  598. ; typedef TELCARecord *                    TELCAPtr
  599.  
  600. ; typedef TELCAPtr *                    TELCAHandle
  601.  
  602. TELCARecord                RECORD 0
  603. caRef                     ds.w    1                ; offset: $0 (0)
  604. hTELDN                     ds.l    1                ; offset: $2 (2)
  605. hTEL                     ds.l    1                ; offset: $6 (6)
  606. caState                     ds.w    1                ; offset: $A (10)
  607. relatedCA                 ds.l    1                ; offset: $C (12)
  608. connectTime                 ds.l    1                ; offset: $10 (16)        ;  can be used by application to keep track of connect time 
  609. intExt                     ds.w    1                ; offset: $14 (20)
  610. callType                 ds.w    1                ; offset: $16 (22)
  611. dialType                 ds.w    1                ; offset: $18 (24)
  612. bearerType                 ds.w    1                ; offset: $1A (26)
  613. rate                     ds.w    1                ; offset: $1C (28)
  614. rmtDN                     ds.l    1                ; offset: $1E (30)
  615. rmtPartyName             ds.l    1                ; offset: $22 (34)
  616. rmtSubaddress             ds.l    1                ; offset: $26 (38)
  617. routeDN                     ds.l    1                ; offset: $2A (42)
  618. routePartyName             ds.l    1                ; offset: $2E (46)
  619. routeSubaddress             ds.l    1                ; offset: $32 (50)
  620. priority                 ds.w    1                ; offset: $36 (54)
  621. conferenceLimit             ds.w    1                ; offset: $38 (56)
  622. featureFlags             ds.l    1                ; offset: $3A (58)
  623. otherFeatures             ds.l    1                ; offset: $3E (62)
  624. telCAPrivate             ds.l    1                ; offset: $42 (66)
  625. refCon                     ds.l    1                ; offset: $46 (70)
  626. userData                 ds.l    1                ; offset: $4A (74)
  627. reserved                 ds.l    1                ; offset: $4E (78)
  628. sizeof                     EQU *                    ; size:   $52 (82)
  629.                         ENDR
  630. ;  Constants for HandleType in structure above 
  631.  
  632. telHandleType                    EQU        0                    ; feature requires a terminal handle 
  633. telDNHandleType                    EQU        1                    ; feature requires a DN handle 
  634. telCAHandleType                    EQU        2                    ; feature requires a CA handle 
  635. FeatureList                RECORD 0
  636. featureID                 ds.w    1                ; offset: $0 (0)
  637. featureName                 ds.l    1                ; offset: $2 (2)
  638. handleType                 ds.w    1                ; offset: $6 (6)
  639. nextFeature                 ds.l    1                ; offset: $8 (8)
  640. sizeof                     EQU *                    ; size:   $C (12)
  641.                         ENDR
  642. ; typedef struct FeatureList *            FeatureListPtr
  643.  
  644. ;  CA MESSAGE STRUCTURES FOR MSGINFO 
  645. CAGenericMsgRec            RECORD 0
  646. rmtDN                     ds.l    1                ; offset: $0 (0)
  647. rmtName                     ds.l    1                ; offset: $4 (4)
  648. rmtSubaddress             ds.l    1                ; offset: $8 (8)
  649. dialType                 ds.w    1                ; offset: $C (12)
  650. sizeof                     EQU *                    ; size:   $E (14)
  651.                         ENDR
  652. CAUserUserInfoMsgRec    RECORD 0
  653. userUserInfo             ds.l    1                ; offset: $0 (0)
  654. sizeof                     EQU *                    ; size:   $4 (4)
  655.                         ENDR
  656. CAConfMsgRec            RECORD 0
  657. relatedCA                 ds.l    1                ; offset: $0 (0)
  658. sizeof                     EQU *                    ; size:   $4 (4)
  659.                         ENDR
  660. CATransfMsgRec            RECORD 0
  661. rmtDN                     ds.l    1                ; offset: $0 (0)
  662. rmtName                     ds.l    1                ; offset: $4 (4)
  663. rmtSubaddress             ds.l    1                ; offset: $8 (8)
  664. dialType                 ds.w    1                ; offset: $C (12)
  665. prepCA                     ds.l    1                ; offset: $E (14)
  666. sizeof                     EQU *                    ; size:   $12 (18)
  667.                         ENDR
  668. ;
  669. ; pascal TELErr InitTEL(void )
  670. ;
  671.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  672.         IMPORT_CFM_FUNCTION InitTEL
  673.     ENDIF
  674.  
  675. ;
  676. ; pascal TELErr TELGetInfo(TELHandle hTEL)
  677. ;
  678.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  679.         IMPORT_CFM_FUNCTION TELGetInfo
  680.     ENDIF
  681.  
  682. ;
  683. ; pascal TELErr TELOpenTerm(TELHandle hTEL)
  684. ;
  685.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  686.         IMPORT_CFM_FUNCTION TELOpenTerm
  687.     ENDIF
  688.  
  689. ;
  690. ; pascal TELErr TELResetTerm(TELHandle hTEL)
  691. ;
  692.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  693.         IMPORT_CFM_FUNCTION TELResetTerm
  694.     ENDIF
  695.  
  696. ;
  697. ; pascal TELErr TELCloseTerm(TELHandle hTEL)
  698. ;
  699.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  700.         IMPORT_CFM_FUNCTION TELCloseTerm
  701.     ENDIF
  702.  
  703. ;
  704. ; pascal TELErr TELTermMsgHand(TELHandle hTEL, long eventMask, TelephoneTermMsgUPP msgProc, long globals)
  705. ;
  706.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  707.         IMPORT_CFM_FUNCTION TELTermMsgHand
  708.     ENDIF
  709.  
  710. ;
  711. ; pascal TELErr TELClrTermMsgHand(TELHandle hTEL, TelephoneTermMsgUPP msgProc)
  712. ;
  713.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  714.         IMPORT_CFM_FUNCTION TELClrTermMsgHand
  715.     ENDIF
  716.  
  717. ;
  718. ; pascal TELErr TELTermEventsSupp(TELHandle hTEL, long *eventMask)
  719. ;
  720.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  721.         IMPORT_CFM_FUNCTION TELTermEventsSupp
  722.     ENDIF
  723.  
  724. ;
  725. ; pascal short TELGetProcID(Str255 name)
  726. ;
  727.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  728.         IMPORT_CFM_FUNCTION TELGetProcID
  729.     ENDIF
  730.  
  731. ;
  732. ; pascal TELHandle TELNew(short procID, TELFlags flags, long refCon, long userData)
  733. ;
  734.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  735.         IMPORT_CFM_FUNCTION TELNew
  736.     ENDIF
  737.  
  738. ;
  739. ; pascal TELHandle TELNewWithResult(short procID, TELFlags flags, long refCon, long userData, TELErr *error)
  740. ;
  741.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  742.         IMPORT_CFM_FUNCTION TELNewWithResult
  743.     ENDIF
  744.  
  745. ;
  746. ; pascal TELErr TELDefault(Ptr *theConfig, short procID, Boolean allocate)
  747. ;
  748.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  749.         IMPORT_CFM_FUNCTION TELDefault
  750.     ENDIF
  751.  
  752. ;
  753. ; pascal Boolean TELValidate(TELHandle hTEL)
  754. ;
  755.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  756.         IMPORT_CFM_FUNCTION TELValidate
  757.     ENDIF
  758.  
  759. ;
  760. ; pascal Ptr TELGetConfig(TELHandle hTEL)
  761. ;
  762.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  763.         IMPORT_CFM_FUNCTION TELGetConfig
  764.     ENDIF
  765.  
  766. ;
  767. ; pascal short TELSetConfig(TELHandle hTEL, Ptr thePtr)
  768. ;
  769.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  770.         IMPORT_CFM_FUNCTION TELSetConfig
  771.     ENDIF
  772.  
  773. ;
  774. ; pascal TELErr TELChoose(TELHandle *hTEL, Point where, TelephoneChooseIdleUPP idleProc)
  775. ;
  776.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  777.         IMPORT_CFM_FUNCTION TELChoose
  778.     ENDIF
  779.  
  780. ;
  781. ; pascal Handle TELSetupPreflight(short procID, long *magicCookie)
  782. ;
  783.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  784.         IMPORT_CFM_FUNCTION TELSetupPreflight
  785.     ENDIF
  786.  
  787. ;
  788. ; pascal void TELSetupSetup(short procID, Ptr theConfig, short count, DialogPtr theDialog, long *magicCookie)
  789. ;
  790.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  791.         IMPORT_CFM_FUNCTION TELSetupSetup
  792.     ENDIF
  793.  
  794. ;
  795. ; pascal Boolean TELSetupFilter(short procID, Ptr theConfig, short count, DialogPtr theDialog, EventRecord *theEvent, short *theItem, long *magicCookie)
  796. ;
  797.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  798.         IMPORT_CFM_FUNCTION TELSetupFilter
  799.     ENDIF
  800.  
  801. ;
  802. ; pascal void TELSetupItem(short procID, Ptr theConfig, short count, DialogPtr theDialog, short *theItem, long *magicCookie)
  803. ;
  804.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  805.         IMPORT_CFM_FUNCTION TELSetupItem
  806.     ENDIF
  807.  
  808. ;
  809. ; pascal void TELSetupCleanup(short procID, Ptr theConfig, short count, DialogPtr theDialog, long *magicCookie)
  810. ;
  811.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  812.         IMPORT_CFM_FUNCTION TELSetupCleanup
  813.     ENDIF
  814.  
  815. ;
  816. ; pascal void TELSetupXCleanup(short procID, Ptr theConfig, short count, DialogPtr theDialog, Boolean OKed, long *magicCookie)
  817. ;
  818.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  819.         IMPORT_CFM_FUNCTION TELSetupXCleanup
  820.     ENDIF
  821.  
  822. ;
  823. ; pascal void TELSetupPostflight(short procID)
  824. ;
  825.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  826.         IMPORT_CFM_FUNCTION TELSetupPostflight
  827.     ENDIF
  828.  
  829. ;
  830. ; pascal TELErr TELDispose(TELHandle hTEL)
  831. ;
  832.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  833.         IMPORT_CFM_FUNCTION TELDispose
  834.     ENDIF
  835.  
  836. ;
  837. ; pascal short TELCountDNs(TELHandle hTEL, short dnType, Boolean physical)
  838. ;
  839.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  840.         IMPORT_CFM_FUNCTION TELCountDNs
  841.     ENDIF
  842.  
  843. ;
  844. ; pascal TELErr TELDNLookupByIndex(TELHandle hTEL, short dnType, Boolean physical, short index, TELDNHandle *hTELDN)
  845. ;
  846.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  847.         IMPORT_CFM_FUNCTION TELDNLookupByIndex
  848.     ENDIF
  849.  
  850. ;
  851. ; pascal TELErr TELDNLookupByName(TELHandle hTEL, ConstStr255Param DN, TELDNHandle *hTELDN)
  852. ;
  853.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  854.         IMPORT_CFM_FUNCTION TELDNLookupByName
  855.     ENDIF
  856.  
  857. ;
  858. ; pascal TELErr TELDNSelect(TELDNHandle hTELDN, Boolean select)
  859. ;
  860.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  861.         IMPORT_CFM_FUNCTION TELDNSelect
  862.     ENDIF
  863.  
  864. ;
  865. ; pascal TELErr TELDNDispose(TELDNHandle hTELDN)
  866. ;
  867.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  868.         IMPORT_CFM_FUNCTION TELDNDispose
  869.     ENDIF
  870.  
  871. ;
  872. ; pascal TELErr TELGetDNInfo(TELDNHandle hTELDN)
  873. ;
  874.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  875.         IMPORT_CFM_FUNCTION TELGetDNInfo
  876.     ENDIF
  877.  
  878. ;
  879. ; pascal TELErr TELGetDNFlags(TELDNHandle hTELDN, long *dnFeatureFlags, long *dnForwardFlags)
  880. ;
  881.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  882.         IMPORT_CFM_FUNCTION TELGetDNFlags
  883.     ENDIF
  884.  
  885. ;
  886. ; pascal TELErr TELDNMsgHand(TELDNHandle hTELDN, Boolean allDNs, long eventMask, TelephoneDNMsgUPP msgProc, long globals)
  887. ;
  888.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  889.         IMPORT_CFM_FUNCTION TELDNMsgHand
  890.     ENDIF
  891.  
  892. ;
  893. ; pascal TELErr TELClrDNMsgHand(TELDNHandle hTELDN, TelephoneDNMsgUPP msgProc)
  894. ;
  895.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  896.         IMPORT_CFM_FUNCTION TELClrDNMsgHand
  897.     ENDIF
  898.  
  899. ;
  900. ; pascal TELErr TELDNEventsSupp(TELDNHandle hTELDN, long *eventMask)
  901. ;
  902.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  903.         IMPORT_CFM_FUNCTION TELDNEventsSupp
  904.     ENDIF
  905.  
  906. ;
  907. ; pascal short TELCountCAs(TELDNHandle hTELDN, short internalExternal)
  908. ;
  909.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  910.         IMPORT_CFM_FUNCTION TELCountCAs
  911.     ENDIF
  912.  
  913. ;
  914. ; pascal TELErr TELCALookup(TELDNHandle hTELDN, short internalExternal, short index, TELCAHandle *hTELCA)
  915. ;
  916.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  917.         IMPORT_CFM_FUNCTION TELCALookup
  918.     ENDIF
  919.  
  920. ;
  921. ; pascal TELErr TELCADispose(TELCAHandle hTELCA)
  922. ;
  923.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  924.         IMPORT_CFM_FUNCTION TELCADispose
  925.     ENDIF
  926.  
  927. ;
  928. ; pascal TELErr TELGetCAState(TELCAHandle hTELCA, short *state)
  929. ;
  930.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  931.         IMPORT_CFM_FUNCTION TELGetCAState
  932.     ENDIF
  933.  
  934. ;
  935. ; pascal TELErr TELGetCAFlags(TELCAHandle hTELCA, long *caFeatureFlags, long *caOtherFeatures)
  936. ;
  937.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  938.         IMPORT_CFM_FUNCTION TELGetCAFlags
  939.     ENDIF
  940.  
  941. ;
  942. ; pascal TELErr TELGetCAInfo(TELCAHandle hTELCA)
  943. ;
  944.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  945.         IMPORT_CFM_FUNCTION TELGetCAInfo
  946.     ENDIF
  947.  
  948. ;
  949. ; pascal TELErr TELCAMsgHand(TELDNHandle hTELDN, long eventMask, TelephoneCAMsgUPP msgProc, long globals)
  950. ;
  951.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  952.         IMPORT_CFM_FUNCTION TELCAMsgHand
  953.     ENDIF
  954.  
  955. ;
  956. ; pascal TELErr TELClrCAMsgHand(TELDNHandle hTELDN, TelephoneCAMsgUPP msgProc)
  957. ;
  958.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  959.         IMPORT_CFM_FUNCTION TELClrCAMsgHand
  960.     ENDIF
  961.  
  962. ;
  963. ; pascal TELErr TELCAEventsSupp(TELDNHandle hTELDN, long *eventMask)
  964. ;
  965.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  966.         IMPORT_CFM_FUNCTION TELCAEventsSupp
  967.     ENDIF
  968.  
  969. ;
  970. ; pascal TELErr TELSetupCall(TELDNHandle hTELDN, TELCAHandle *hTELCA, ConstStr255Param destDN, ConstStr255Param destName, ConstStr255Param destSubaddress, ConstStr255Param userUserInfo, short bearerType, short rate)
  971. ;
  972.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  973.         IMPORT_CFM_FUNCTION TELSetupCall
  974.     ENDIF
  975.  
  976. ;
  977. ; pascal TELErr TELConnect(TELCAHandle hTELCA)
  978. ;
  979.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  980.         IMPORT_CFM_FUNCTION TELConnect
  981.     ENDIF
  982.  
  983. ;
  984. ; pascal TELErr TELDialDigits(TELCAHandle hTELCA, ConstStr255Param digits)
  985. ;
  986.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  987.         IMPORT_CFM_FUNCTION TELDialDigits
  988.     ENDIF
  989.  
  990. ;
  991. ; pascal TELErr TELAcceptCall(TELCAHandle hTELCA)
  992. ;
  993.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  994.         IMPORT_CFM_FUNCTION TELAcceptCall
  995.     ENDIF
  996.  
  997. ;
  998. ; pascal TELErr TELRejectCall(TELCAHandle hTELCA, short reason)
  999. ;
  1000.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1001.         IMPORT_CFM_FUNCTION TELRejectCall
  1002.     ENDIF
  1003.  
  1004. ;
  1005. ; pascal TELErr TELDeflectCall(TELCAHandle hTELCA, ConstStr255Param rmtDN, ConstStr255Param rmtName, ConstStr255Param rmtSubaddress)
  1006. ;
  1007.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1008.         IMPORT_CFM_FUNCTION TELDeflectCall
  1009.     ENDIF
  1010.  
  1011. ;
  1012. ; pascal TELErr TELAnswerCall(TELCAHandle hTELCA)
  1013. ;
  1014.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1015.         IMPORT_CFM_FUNCTION TELAnswerCall
  1016.     ENDIF
  1017.  
  1018. ;
  1019. ; pascal TELErr TELDrop(TELCAHandle hTELCA, ConstStr255Param userUserInfo)
  1020. ;
  1021.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1022.         IMPORT_CFM_FUNCTION TELDrop
  1023.     ENDIF
  1024.  
  1025. ;
  1026. ; pascal TELErr TELHold(TELCAHandle hTELCA)
  1027. ;
  1028.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1029.         IMPORT_CFM_FUNCTION TELHold
  1030.     ENDIF
  1031.  
  1032. ;
  1033. ; pascal TELErr TELRetrieve(TELCAHandle hTELCA)
  1034. ;
  1035.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1036.         IMPORT_CFM_FUNCTION TELRetrieve
  1037.     ENDIF
  1038.  
  1039. ;
  1040. ; pascal TELErr TELConferencePrep(TELCAHandle hTELCA1, TELCAHandle hTELCA2, short numToConference)
  1041. ;
  1042.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1043.         IMPORT_CFM_FUNCTION TELConferencePrep
  1044.     ENDIF
  1045.  
  1046. ;
  1047. ; pascal TELErr TELConferenceEstablish(TELCAHandle hTELCA1, TELCAHandle hTELCA2)
  1048. ;
  1049.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1050.         IMPORT_CFM_FUNCTION TELConferenceEstablish
  1051.     ENDIF
  1052.  
  1053. ;
  1054. ; pascal TELErr TELConferenceSplit(TELCAHandle hTELCA)
  1055. ;
  1056.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1057.         IMPORT_CFM_FUNCTION TELConferenceSplit
  1058.     ENDIF
  1059.  
  1060. ;
  1061. ; pascal TELErr TELTransferPrep(TELCAHandle hTELCA1, TELCAHandle hTELCA2)
  1062. ;
  1063.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1064.         IMPORT_CFM_FUNCTION TELTransferPrep
  1065.     ENDIF
  1066.  
  1067. ;
  1068. ; pascal TELErr TELTransferEstablish(TELCAHandle hTELCA1, TELCAHandle hTELCA2)
  1069. ;
  1070.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1071.         IMPORT_CFM_FUNCTION TELTransferEstablish
  1072.     ENDIF
  1073.  
  1074. ;
  1075. ; pascal TELErr TELTransferBlind(TELCAHandle hTELCA, ConstStr255Param rmtDN, ConstStr255Param rmtName, ConstStr255Param rmtSubaddress)
  1076. ;
  1077.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1078.         IMPORT_CFM_FUNCTION TELTransferBlind
  1079.     ENDIF
  1080.  
  1081. ;
  1082. ; pascal TELErr TELForwardSet(TELDNHandle hTELDN, ConstStr255Param forwardDN, ConstStr255Param forwardName, ConstStr255Param forwardSubaddress, short forwardType, short numrings)
  1083. ;
  1084.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1085.         IMPORT_CFM_FUNCTION TELForwardSet
  1086.     ENDIF
  1087.  
  1088. ;
  1089. ; pascal TELErr TELForwardClear(TELDNHandle hTELDN, short forwardType)
  1090. ;
  1091.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1092.         IMPORT_CFM_FUNCTION TELForwardClear
  1093.     ENDIF
  1094.  
  1095. ;
  1096. ; pascal TELErr TELCallbackSet(TELCAHandle hTELCA, short *callbackRef)
  1097. ;
  1098.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1099.         IMPORT_CFM_FUNCTION TELCallbackSet
  1100.     ENDIF
  1101.  
  1102. ;
  1103. ; pascal TELErr TELCallbackClear(TELHandle hTEL, short callbackRef)
  1104. ;
  1105.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1106.         IMPORT_CFM_FUNCTION TELCallbackClear
  1107.     ENDIF
  1108.  
  1109. ;
  1110. ; pascal TELErr TELCallbackNow(TELCAHandle hTELCA, short callbackRef)
  1111. ;
  1112.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1113.         IMPORT_CFM_FUNCTION TELCallbackNow
  1114.     ENDIF
  1115.  
  1116. ;
  1117. ; pascal TELErr TELDNDSet(TELDNHandle hTELDN, short dndType)
  1118. ;
  1119.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1120.         IMPORT_CFM_FUNCTION TELDNDSet
  1121.     ENDIF
  1122.  
  1123. ;
  1124. ; pascal TELErr TELDNDClear(TELDNHandle hTELDN, short dndType)
  1125. ;
  1126.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1127.         IMPORT_CFM_FUNCTION TELDNDClear
  1128.     ENDIF
  1129.  
  1130. ;
  1131. ; pascal TELErr TELCallPickup(TELCAHandle hTELCA, ConstStr255Param pickupDN, short pickupGroupID)
  1132. ;
  1133.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1134.         IMPORT_CFM_FUNCTION TELCallPickup
  1135.     ENDIF
  1136.  
  1137. ;
  1138. ; pascal TELErr TELParkCall(TELCAHandle hTELCA, StringPtr *parkRetrieveID, ConstStr255Param parkID)
  1139. ;
  1140.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1141.         IMPORT_CFM_FUNCTION TELParkCall
  1142.     ENDIF
  1143.  
  1144. ;
  1145. ; pascal TELErr TELRetrieveParkedCall(TELCAHandle hTELCA, ConstStr255Param parkRetrieveID)
  1146. ;
  1147.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1148.         IMPORT_CFM_FUNCTION TELRetrieveParkedCall
  1149.     ENDIF
  1150.  
  1151. ;
  1152. ; pascal TELErr TELVoiceMailAccess(TELCAHandle hTELCA)
  1153. ;
  1154.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1155.         IMPORT_CFM_FUNCTION TELVoiceMailAccess
  1156.     ENDIF
  1157.  
  1158. ;
  1159. ; pascal TELErr TELPaging(TELCAHandle hTELCA, short pageID)
  1160. ;
  1161.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1162.         IMPORT_CFM_FUNCTION TELPaging
  1163.     ENDIF
  1164.  
  1165. ;
  1166. ; pascal TELErr TELIntercom(TELCAHandle hTELCA, short intercomID)
  1167. ;
  1168.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1169.         IMPORT_CFM_FUNCTION TELIntercom
  1170.     ENDIF
  1171.  
  1172. ;
  1173. ; pascal TELErr TELOtherFeatureList(TELHandle hTEL, FeatureListPtr *fList)
  1174. ;
  1175.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1176.         IMPORT_CFM_FUNCTION TELOtherFeatureList
  1177.     ENDIF
  1178.  
  1179. ;
  1180. ; pascal TELErr TELOtherFeatureImplement(TELHandle hTEL, Handle theHandle, short featureID)
  1181. ;
  1182.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1183.         IMPORT_CFM_FUNCTION TELOtherFeatureImplement
  1184.     ENDIF
  1185.  
  1186. ;
  1187. ; pascal TELErr TELToolFunctions(TELHandle hTEL, short msgcode, Boolean *supportsIt)
  1188. ;
  1189.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1190.         IMPORT_CFM_FUNCTION TELToolFunctions
  1191.     ENDIF
  1192.  
  1193. ;
  1194. ; pascal TELErr TELOtherFunction(TELHandle hTEL, Ptr paramblock, long size)
  1195. ;
  1196.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1197.         IMPORT_CFM_FUNCTION TELOtherFunction
  1198.     ENDIF
  1199.  
  1200. ;
  1201. ; pascal TELErr TELGetHooksw(TELHandle hTEL, short hookType, Boolean *offHook)
  1202. ;
  1203.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1204.         IMPORT_CFM_FUNCTION TELGetHooksw
  1205.     ENDIF
  1206.  
  1207. ;
  1208. ; pascal TELErr TELSetHooksw(TELHandle hTEL, short hookType, Boolean offHook)
  1209. ;
  1210.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1211.         IMPORT_CFM_FUNCTION TELSetHooksw
  1212.     ENDIF
  1213.  
  1214. ;
  1215. ; pascal TELErr TELGetVolume(TELHandle hTEL, short volType, short *level, short *volState)
  1216. ;
  1217.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1218.         IMPORT_CFM_FUNCTION TELGetVolume
  1219.     ENDIF
  1220.  
  1221. ;
  1222. ; pascal TELErr TELSetVolume(TELHandle hTEL, short volType, short *level, short volState)
  1223. ;
  1224.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1225.         IMPORT_CFM_FUNCTION TELSetVolume
  1226.     ENDIF
  1227.  
  1228. ;
  1229. ; pascal TELErr TELAlert(TELHandle hTEL, short *level, short alertPattern)
  1230. ;
  1231.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1232.         IMPORT_CFM_FUNCTION TELAlert
  1233.     ENDIF
  1234.  
  1235. ;
  1236. ; pascal TELErr TELGetDisplay(TELHandle hTEL, short index, short *displayMode, StringPtr *text)
  1237. ;
  1238.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1239.         IMPORT_CFM_FUNCTION TELGetDisplay
  1240.     ENDIF
  1241.  
  1242. ;
  1243. ; pascal TELErr TELSetDisplay(TELHandle hTEL, short index, short displayMode, ConstStr255Param text)
  1244. ;
  1245.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1246.         IMPORT_CFM_FUNCTION TELSetDisplay
  1247.     ENDIF
  1248.  
  1249. ;
  1250. ; pascal void TELIdle(TELHandle hTEL)
  1251. ;
  1252.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1253.         IMPORT_CFM_FUNCTION TELIdle
  1254.     ENDIF
  1255.  
  1256. ;
  1257. ; pascal void TELActivate(TELHandle hTEL, Boolean activate)
  1258. ;
  1259.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1260.         IMPORT_CFM_FUNCTION TELActivate
  1261.     ENDIF
  1262.  
  1263. ;
  1264. ; pascal void TELResume(TELHandle hTEL, Boolean resume)
  1265. ;
  1266.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1267.         IMPORT_CFM_FUNCTION TELResume
  1268.     ENDIF
  1269.  
  1270. ;
  1271. ; pascal Boolean TELMenu(TELHandle hTEL, short menuID, short item)
  1272. ;
  1273.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1274.         IMPORT_CFM_FUNCTION TELMenu
  1275.     ENDIF
  1276.  
  1277. ;
  1278. ; pascal void TELEvent(TELHandle hTEL, const EventRecord *theEvent)
  1279. ;
  1280.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1281.         IMPORT_CFM_FUNCTION TELEvent
  1282.     ENDIF
  1283.  
  1284. ;
  1285. ; pascal void TELGetToolName(short procID, Str255 name)
  1286. ;
  1287.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1288.         IMPORT_CFM_FUNCTION TELGetToolName
  1289.     ENDIF
  1290.  
  1291. ;
  1292. ; pascal Handle TELGetVersion(TELHandle hTEL)
  1293. ;
  1294.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1295.         IMPORT_CFM_FUNCTION TELGetVersion
  1296.     ENDIF
  1297.  
  1298. ;
  1299. ; pascal short TELGetTELVersion(void )
  1300. ;
  1301.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1302.         IMPORT_CFM_FUNCTION TELGetTELVersion
  1303.     ENDIF
  1304.  
  1305. ;
  1306. ; pascal TELErr TELIntlToEnglish(TELHandle hTEL, Ptr inputPtr, Ptr *outputPtr, short language)
  1307. ;
  1308.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1309.         IMPORT_CFM_FUNCTION TELIntlToEnglish
  1310.     ENDIF
  1311.  
  1312. ;
  1313. ; pascal TELErr TELEnglishToIntl(TELHandle hTEL, Ptr inputPtr, Ptr *outputPtr, short language)
  1314. ;
  1315.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1316.         IMPORT_CFM_FUNCTION TELEnglishToIntl
  1317.     ENDIF
  1318.  
  1319. ;
  1320. ; pascal TELErr TELGetDNSoundInput(TELDNHandle hTELDN, Str255 deviceName)
  1321. ;
  1322.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1323.         IMPORT_CFM_FUNCTION TELGetDNSoundInput
  1324.     ENDIF
  1325.  
  1326. ;
  1327. ; pascal TELErr TELDisposeDNSoundInput(TELDNHandle hTELDN, ConstStr255Param deviceName)
  1328. ;
  1329.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1330.         IMPORT_CFM_FUNCTION TELDisposeDNSoundInput
  1331.     ENDIF
  1332.  
  1333. ;
  1334. ; pascal TELErr TELGetDNSoundOutput(TELDNHandle hTELDN, Component *SndOut)
  1335. ;
  1336.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1337.         IMPORT_CFM_FUNCTION TELGetDNSoundOutput
  1338.     ENDIF
  1339.  
  1340. ;
  1341. ; pascal TELErr TELDisposeDNSoundOutput(TELDNHandle hTELDN, Component SndOut)
  1342. ;
  1343.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1344.         IMPORT_CFM_FUNCTION TELDisposeDNSoundOutput
  1345.     ENDIF
  1346.  
  1347. ;
  1348. ; pascal TELErr TELGetHSSoundInput(TELHandle termHand, Str255 deviceName)
  1349. ;
  1350.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1351.         IMPORT_CFM_FUNCTION TELGetHSSoundInput
  1352.     ENDIF
  1353.  
  1354. ;
  1355. ; pascal TELErr TELDisposeHSSoundInput(TELHandle termHand, ConstStr255Param deviceName)
  1356. ;
  1357.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1358.         IMPORT_CFM_FUNCTION TELDisposeHSSoundInput
  1359.     ENDIF
  1360.  
  1361. ;
  1362. ; pascal TELErr TELGetHSSoundOutput(TELHandle termHand, Component *SndOut)
  1363. ;
  1364.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1365.         IMPORT_CFM_FUNCTION TELGetHSSoundOutput
  1366.     ENDIF
  1367.  
  1368. ;
  1369. ; pascal TELErr TELDisposeHSSoundOutput(TELHandle termHand, Component SndOut)
  1370. ;
  1371.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1372.         IMPORT_CFM_FUNCTION TELDisposeHSSoundOutput
  1373.     ENDIF
  1374.  
  1375. ;
  1376. ; pascal TELErr TELDNSetAutoAnswer(TELDNHandle hTELDN, Boolean AutoAnswerOn)
  1377. ;
  1378.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1379.         IMPORT_CFM_FUNCTION TELDNSetAutoAnswer
  1380.     ENDIF
  1381.  
  1382. ;
  1383. ; pascal TELErr TELDNTollSaverControl(TELDNHandle hTELDN, Boolean QuickAnswer)
  1384. ;
  1385.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1386.         IMPORT_CFM_FUNCTION TELDNTollSaverControl
  1387.     ENDIF
  1388.  
  1389. ;
  1390. ; pascal TELErr TELSetIndHSConnect(TELHandle termHand, Boolean Connect)
  1391. ;
  1392.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1393.         IMPORT_CFM_FUNCTION TELSetIndHSConnect
  1394.     ENDIF
  1395.  
  1396. ;
  1397. ; pascal TELErr TELGetIndHSConnect(TELHandle termHand, Boolean *Connect)
  1398. ;
  1399.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1400.         IMPORT_CFM_FUNCTION TELGetIndHSConnect
  1401.     ENDIF
  1402.  
  1403. ;
  1404. ; pascal TELErr TELCAVoiceDetect(TELCAHandle hTELCA, Boolean VoiceDetectOn)
  1405. ;
  1406.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1407.         IMPORT_CFM_FUNCTION TELCAVoiceDetect
  1408.     ENDIF
  1409.  
  1410. ;
  1411. ; pascal TELErr TELCASilenceDetect(TELCAHandle hTELCA, Boolean DetectOn, long Period)
  1412. ;
  1413.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1414.         IMPORT_CFM_FUNCTION TELCASilenceDetect
  1415.     ENDIF
  1416.  
  1417. ;
  1418. ; pascal TELErr TELGetTelNewErr(void )
  1419. ;
  1420.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1421.         IMPORT_CFM_FUNCTION TELGetTelNewErr
  1422.     ENDIF
  1423.  
  1424. ;
  1425. ; pascal TELErr TELDNSetDTMF(TELDNHandle hTELDN, Boolean dtmfOn)
  1426. ;
  1427.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1428.         IMPORT_CFM_FUNCTION TELDNSetDTMF
  1429.     ENDIF
  1430.  
  1431. ;
  1432. ; pascal TELErr TELDNGetDTMF(TELDNHandle hTELDN, Boolean *dtmfOn)
  1433. ;
  1434.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1435.         IMPORT_CFM_FUNCTION TELDNGetDTMF
  1436.     ENDIF
  1437.  
  1438. ;
  1439. ; pascal TELErr TELHSSetDTMF(TELHandle termHand, Boolean dtmfOn)
  1440. ;
  1441.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1442.         IMPORT_CFM_FUNCTION TELHSSetDTMF
  1443.     ENDIF
  1444.  
  1445. ;
  1446. ; pascal TELErr TELHSGetDTMF(TELHandle termHand, Boolean *dtmfOn)
  1447. ;
  1448.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1449.         IMPORT_CFM_FUNCTION TELHSGetDTMF
  1450.     ENDIF
  1451.  
  1452. ;
  1453. ; pascal TELErr TELGetDNStatus(TELDNHandle hTELDN, long *inUse)
  1454. ;
  1455.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1456.         IMPORT_CFM_FUNCTION TELGetDNStatus
  1457.     ENDIF
  1458.  
  1459. ;
  1460. ; pascal TELErr TELGetDNProgressDet(TELDNHandle hTELDN, long selector, Boolean *prgDetOn)
  1461. ;
  1462.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1463.         IMPORT_CFM_FUNCTION TELGetDNProgressDet
  1464.     ENDIF
  1465.  
  1466. ;
  1467. ; pascal TELErr TELSetDNProgressDet(TELDNHandle hTELDN, long selector, Boolean prgDetOn)
  1468. ;
  1469.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1470.         IMPORT_CFM_FUNCTION TELSetDNProgressDet
  1471.     ENDIF
  1472.  
  1473.  
  1474.     ENDIF ; __TELEPHONES__ 
  1475.  
  1476.